package com.example.shixun.dao;

import com.example.shixun.pojo.Course;
import com.example.shixun.pojo.CourseStudent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseStudentDao {
    public Integer saveCourseStudent(CourseStudent courseStudent);
    public Integer deletsCourseStudentById(@Param("courseId") Integer courseId, @Param("studentId") Integer studentId);
    public List<CourseStudent> selectCourseStudentByCourseId(Integer courseId);
    public List<CourseStudent> selectCourseStudentByStudentId(Integer studentId);
    public Integer studiedFlag(CourseStudent courseStudent);
}
